import time

import testconfig

def twofunction():
    count = 0
    while True:
        #testconfig.houlock.acquire()
        print(' ')
        for i in range(5):
            print(2)
            time.sleep(0.5)
        #testconfig.houlock.release()
        count = count + 1
        if count > 5:
            return
        time.sleep(0.5)